/* 地址搜索选择页面样式 */
.address-search-container {
  min-height: 100vh;
  background: #f8f9fa;
}

/* 自定义导航栏 */
.custom-nav {
  background: white;
  border-bottom: 1px solid #eee;
}

.nav-content {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.nav-back {
  background: none;
  border: none;
  padding: 8px;
  margin-left: -8px;
  
  image {
    width: 20px;
    height: 20px;
  }
}

.nav-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.nav-placeholder {
  width: 36px;
}

/* 搜索区域 */
.search-section {
  background: white;
  padding: 16px;
  border-bottom: 8px solid #f8f9fa;
}

.search-bar {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 8px 12px;
  gap: 8px;
  margin-bottom: 16px;
}

.search-icon {
  width: 20px;
  height: 20px;
  opacity: 0.6;
}

.search-input {
  flex: 1;
  font-size: 16px;
  color: #333;
  background: transparent;
  border: none;
  outline: none;
}

.search-btn {
  background: #5cb85c;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 16px;
  font-size: 14px;
  
  &[disabled] {
    background: #ccc;
    color: #999;
  }
}

/* 快捷操作 */
.quick-actions {
  display: flex;
  gap: 12px;
}

.quick-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  color: #666;
  font-size: 14px;
  
  image {
    width: 18px;
    height: 18px;
  }
  
  &:active {
    background: #e9ecef;
  }
}

/* 搜索结果区域 */
.results-section {
  background: white;
  margin-top: 8px;
}

.results-header {
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.results-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.results-list {
  max-height: 400px;
}

.result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid #f8f9fa;
  
  &:active {
    background: #f8f9fa;
  }
  
  &:last-child {
    border-bottom: none;
  }
}

.location-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
}

.location-icon {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  opacity: 0.6;
}

.location-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.location-name {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  line-height: 1.3;
}

.location-address {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

.location-distance {
  font-size: 12px;
  color: #999;
}

.select-icon {
  width: 16px;
  height: 16px;
  opacity: 0.4;
}

/* 当前位置区域 */
.current-location {
  background: white;
  margin-top: 8px;
}

.current-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 16px 8px 16px;
  
  image {
    width: 18px;
    height: 18px;
  }
  
  text {
    font-size: 14px;
    font-weight: 600;
    color: #5cb85c;
  }
}

.current-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 16px 16px;
  
  &:active {
    background: #f8f9fa;
  }
}

.use-btn {
  background: #5cb85c;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 6px 16px;
  font-size: 12px;
}

/* 空状态 */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.empty-icon {
  width: 80px;
  height: 80px;
  opacity: 0.3;
  margin-bottom: 16px;
}

.empty-text {
  font-size: 14px;
  color: #999;
  margin-bottom: 20px;
}

.retry-btn {
  background: #5cb85c;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 20px;
  font-size: 14px;
}

/* 加载状态 */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.loading-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #5cb85c;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 12px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  font-size: 14px;
  color: #666;
}

/* 响应式适配 */
@media (max-width: 375px) {
  .quick-actions {
    flex-direction: column;
    gap: 8px;
  }
  
  .quick-btn {
    flex: none;
  }
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
  .address-search-container {
    background: #1c1c1e;
  }
  
  .custom-nav {
    background: #2c2c2e;
    border-bottom-color: #48484a;
  }
  
  .nav-title {
    color: #ffffff;
  }
  
  .search-section, .results-section, .current-location {
    background: #2c2c2e;
  }
  
  .search-bar {
    background: #48484a;
  }
  
  .search-input {
    color: #ffffff;
  }
  
  .location-name {
    color: #ffffff;
  }
  
  .location-address {
    color: #8e8e93;
  }
  
  .results-header {
    border-bottom-color: #48484a;
  }
  
  .result-item {
    border-bottom-color: #48484a;
    
    &:active {
      background: #48484a;
    }
  }
}


